# -*- coding: utf-8 -*-
"""
__mktime__ = '2019/4/8'
__author__ = 'Just'
__filename__ = 'comment'
"""
import time


def _check_section_urls(_list):
    """检查章节是否链接被屏蔽, 侵权警告"""
    for _item in _list:
        if _item == 'javascript:void();':
            return False
    return True


def _get_current_time():
    """获取当前时间戳"""
    return int(time.time())


def _datetime_to_time(_date):
    """将str日期转成时间戳"""
    return int(time.mktime(time.strptime(_date, '%Y-%m-%d')))
